package edu.avans.hartigehap.domain;

public class EmptyState implements State
{
	private Order order;
	
	public EmptyState(Order order)
	{
		this.order = order;
	}
	
	@Override
	public void fill()
	{
		order.setWebStatus(order.getConceptState());
	}
	
	@Override
	public void empty()  throws StateException 
	{
		throw new StateException("Cannot empty an order when it's still empty");
	}
	
	@Override
	public void submit()  throws StateException 
	{
		throw new StateException("Cannot submit an order when it's empty");
	}	
}
